package cn.pro.entity;

import cn.pro.entity.qo.ProUserQuery;
import cn.pro.entity.vo.ProRoleVo;
import cn.pro.utils.Desc;
import cn.pro.utils.NotNull;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;


@Data
@Entity
@Builder
@NoArgsConstructor()
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@Table ( name ="pro_user" )
public class ProUser extends ProUserQuery implements Serializable{
private static final long serialVersionUID = 1L;

  @Column(name = "id" )
  @Id
  @Desc("主键")
  private String id;

  @Column(name = "name" )
  @Desc("用户名")
  @NotNull(message = "用户名不能为空")
  private String name;

  @NotNull(message = "密码不能为空")
  @Column(name = "passWord" )
  private String passWord;

  @Column(name = "email" )
  @Desc("用户邮箱")
  @NotNull(message = "邮箱不能为空")
  private String email;

  @Column(name = "is_admin" )
  @Desc("是否为超级管理员1:是、0:否，默认不是")
  private Integer isAdmin;

  @Column(name = "status" )
  @Desc("该条记录是否有效1:有效、0：无效")
  private Integer status = 1;

  @Column(name = "create_time" )
  @Desc("创建时间")
  private java.util.Date createTime;

  @Column(name = "update_time" )
  @Desc("更新时间")
  private java.util.Date updateTime;

  @Column(name = "图片路径")
  private String picture;

  public static  void main(String[] args){System.out.println(MapperGenerator.genMapper(ProUser.class));}


}
